#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:4996)
#include <stdio.h>
#include<stdlib.h>
int main() {
    int n = 0;
    scanf("%d", &n);
    int sum = 0;
    int* p = malloc(n * sizeof(int));
    int i = 0, cnt = 0;
    for (; i < n; i++) {
        scanf("%d", &p[i]);
    }
    int cnt2 = 0;
    for (i = 0; i < n; i++) {
        if (p[i] < 0) cnt++;
        if (p[i] > 0) {
            sum += p[i];
            cnt2++;
        }
    }
    printf("%d ", cnt);
    if (sum == 0) {
        printf("0.0\n");
    }
    else {
        printf("%.1f", (float)sum / cnt2);
    }
    free(p);
    return 0;
}